<template>
  <div style="width: 1300px; margin: auto">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="商铺添加" name="first">
        <addShoP></addShoP>
      </el-tab-pane>
      <el-tab-pane label="新房添加" name="second">
        <addNew></addNew>
      </el-tab-pane>
      <el-tab-pane label="二手房添加" name="third">
        <addUsed></addUsed>
      </el-tab-pane>
      <el-tab-pane label="租房添加" name="fourth">
        <addRent></addRent>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import addShoP from "./addShop.vue";
import addNew from "./addNew.vue";
import addRent from "./addRent.vue";
import addUsed from "./addUsed.vue";
import VueRouter from "vue-router";
export default {
  components: { addShoP, addNew, addRent, addUsed },
  data() {
    return {
      activeName: "first",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>
